package com.springcloud.demo.api;

import com.springcloud.demo.model.Demo;
import com.xframework.api.BaseRestService;
import com.xframework.inteceptor.FeignRequestInteceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by xuning on 2020/8/26.
 */
@FeignClient(name = "springcloud-demo-provider", configuration = FeignRequestInteceptor.class)
public interface DemoRestService extends BaseRestService {
    @RequestMapping(value = "/provider/helloDemoProvider", method = RequestMethod.POST)
    public Demo helloDemoProvider(@RequestBody Demo demo);

    @RequestMapping(value = "/provider/helloDemoProviderGet", method = RequestMethod.POST)
    public Demo helloDemoProviderGet(@RequestBody Demo demo);
}
